#ifndef __CLASS__HPP__
#define __CLASS__HPP__
#include "alltype.hpp"

namespace demo_class {
class person {
public:    
    person() = default;
    person(uint32_t age, std::string name);
    static napi_value SayName(napi_env env, napi_callback_info info);
    static napi_value SetName(napi_env env, napi_callback_info info);
    static napi_value GetName(napi_env env, napi_callback_info info);
    static napi_value SayAge(napi_env env, napi_callback_info info);
    static napi_value Construct(napi_env env, napi_callback_info info);
    static napi_value Exports(napi_env env, napi_value &exports);

    ~person()
    {
        LOGINFO("~person");
    }

    std::string name_;
private:
    uint32_t age_;
};

napi_value GetPerson(napi_env env, napi_callback_info info);
};




#endif